package com.alpha.eceasy.mall.service;

import com.alpha.eceasy.extension.BaseService;
import com.alpha.eceasy.mall.api.dto.ShoppingCartDTO;
import com.alpha.eceasy.mall.api.entity.MallShoppingCart;
import com.alpha.eceasy.mall.api.vo.MallShoppingCartVO;

import java.util.List;

public interface MallShoppingCartService extends BaseService<MallShoppingCart> {
	/**
	 * 新增购物车
	 *
	 * @param mallShoppingCart 购物车信息
	 * @return 购物车扩展信息
	 */
	MallShoppingCartVO saveCat(MallShoppingCart mallShoppingCart);

	/**
	 * 修改购物车
	 *
	 * @param mallShoppingCart 购物车信息
	 * @return 修改后购物车
	 */
	MallShoppingCartVO updateShoppingCartByGuid(MallShoppingCart mallShoppingCart);

	/**
	 * 根据用户查看购物车列表
	 *
	 * @return 购物车列表
	 */
	List<MallShoppingCartVO> selectListByCustomerGuid();

	/**
	 * 购物车清空
	 *
	 * @return 是否成功
	 */
	Boolean removeByCustomerId();
	Boolean removeByGuidList(ShoppingCartDTO dto);

}
